package cvs;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TestRun {

	public static void main(String[] args) {

	
		String from="2010-08-14";
		String end="2010-08-20";
		
		
		String today="2010-08-15";
		
		System.out.println(today.compareTo("2010-08-14") );
		System.out.println(today.compareTo("2010-08-15") );
		System.out.println(today.compareTo("2010-08-16") );
			
		
		
	}

	public static void testFormat(String s) {
		String result = formatRawName(s);
		System.out.println(s + " ->" + result);
	}

	public static final String[] useless_prefixs = { "SAM-", "SMGX", "SMG-",
			"SAMS-" };

	public void callItAgain(int i) {
		System.out.println("enter " + i);

		if (i < 5) {
			++i;
			callItAgain(i);
		} else {
			System.out.println("exit " + i);
			return;
		}
		System.out.println(" exit " + i);
		return;
	}

	private static String formatRawName(String rawName) {

		for (String prefix : useless_prefixs) {
			if (rawName.startsWith(prefix))
				return rawName.substring(prefix.length(), rawName.length());
		}
		return rawName;
	}

}
// end